<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>企业成员管理 - 社交平台</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    /* 基础样式 */
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f7fa;
      color: #333;
      margin: 0;
      padding-bottom: 15px;
    }
    
    /* 顶部导航 */
    .top-nav {
      height: 50px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
      padding: 0 15px;
      position: sticky;
      top: 0;
      z-index: 100;
    }
    
    .nav-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0 auto;
    }
    
    .nav-btn {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #666;
      text-decoration: none;
    }
    
    .nav-right {
      display: flex;
    }
    
    /* 企业信息头部 */
    .company-header {
      background-color: #fff;
      padding: 15px;
      border-bottom: 1px solid #eee;
      display: flex;
      align-items: center;
    }
    
    .company-logo {
      width: 60px;
      height: 60px;
      border-radius: 8px;
      overflow: hidden;
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .company-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .company-info {
      flex: 1;
    }
    
    .company-name {
      font-size: 17px;
      font-weight: 600;
      margin-bottom: 3px;
    }
    
    .member-count {
      font-size: 13px;
      color: #666;
    }
    
    /* 样式切换器 */
    .style-switcher {
      background-color: #fff;
      padding: 10px 15px;
      border-bottom: 1px solid #eee;
    }
    
    .style-tabs {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 5px;
    }
    
    .style-tabs::-webkit-scrollbar {
      display: none;
    }
    
    .style-tab {
      padding: 6px 14px;
      background-color: #f5f7fa;
      border-radius: 20px;
      font-size: 14px;
      white-space: nowrap;
      cursor: pointer;
    }
    
    .style-tab.active {
      background-color: #1890ff;
      color: white;
    }
    
    /* 搜索和筛选 */
    .search-bar {
      padding: 10px 15px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
    }
    
    .search-input {
      width: 100%;
      padding: 10px 15px;
      border-radius: 8px;
      border: 1px solid #eee;
      background-color: #f5f7fa;
      font-size: 14px;
      outline: none;
    }
    
    .search-input:focus {
      border-color: #1890ff;
    }
    
    .filter-bar {
      padding: 10px 15px;
      background-color: #fff;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
    }
    
    .filter-btn {
      padding: 5px 12px;
      border-radius: 6px;
      border: 1px solid #eee;
      background-color: #f5f7fa;
      font-size: 14px;
      display: flex;
      align-items: center;
    }
    
    .filter-btn i {
      margin-right: 5px;
      font-size: 12px;
    }
    
    /* 通用成员管理页面样式 */
    .member-page {
      display: none;
    }
    
    .member-page.active {
      display: block;
    }
    
    /* 成员列表容器 */
    .member-container {
      padding: 10px;
    }
    
    /* 成员项基础样式 */
    .member-item {
      background-color: #fff;
      border-radius: 8px;
      margin-bottom: 10px;
      overflow: hidden;
    }
    
    /* 成员头部信息 */
    .member-header {
      padding: 15px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .member-avatar {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      overflow: hidden;
      margin-right: 12px;
      flex-shrink: 0;
    }
    
    .member-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .member-main {
      flex: 1;
    }
    
    .member-name {
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 3px;
      display: flex;
      align-items: center;
    }
    
    .admin-badge {
      background-color: #e6f7ff;
      color: #1890ff;
      font-size: 12px;
      padding: 1px 6px;
      border-radius: 4px;
      margin-left: 5px;
    }
    
    .member-role {
      font-size: 13px;
      color: #666;
    }
    
    /* 成员详情信息 */
    .member-detail {
      padding: 10px 15px;
    }
    
    .detail-row {
      display: flex;
      padding: 6px 0;
      font-size: 14px;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .detail-row:last-child {
      border-bottom: none;
    }
    
    .detail-label {
      color: #999;
      width: 80px;
      flex-shrink: 0;
    }
    
    .detail-value {
      flex: 1;
    }
    
    /* 成员状态标签 */
    .status-tag {
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
    }
    
    .status-active {
      background-color: #e6f7ff;
      color: #1890ff;
    }
    
    .status-inactive {
      background-color: #f5f5f5;
      color: #8c8c8c;
    }
    
    .status-pending {
      background-color: #fff7e6;
      color: #faad14;
    }
    
    /* 操作按钮 */
    .member-actions {
      padding: 10px 15px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      border-top: 1px solid #f5f5f5;
    }
    
    .action-btn {
      padding: 6px 15px;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      align-items: center;
      border: none;
    }
    
    .action-btn i {
      margin-right: 5px;
      font-size: 12px;
    }
    
    .btn-normal {
      background-color: #f5f5f5;
      color: #666;
    }
    
    .btn-primary {
      background-color: #1890ff;
      color: white;
    }
    
    .btn-danger {
      background-color: #ff4d4f;
      color: white;
    }
    
    /* 分页控件 */
    .pagination {
      display: flex;
      justify-content: center;
      padding: 15px;
      gap: 8px;
    }
    
    .page-btn {
      width: 32px;
      height: 32px;
      border-radius: 4px;
      border: 1px solid #eee;
      background-color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
    }
    
    .page-btn.active {
      background-color: #1890ff;
      color: white;
      border-color: #1890ff;
    }
    
    /* 分组标题 */
    .group-title {
      padding: 10px 15px;
      font-size: 14px;
      color: #666;
      background-color: #f5f7fa;
    }
    
    /* 样式1 - 标准布局 */
    .standard-members .member-item {
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .standard-members .member-stats {
      display: flex;
      padding: 10px 15px;
      background-color: #fafafa;
      border-top: 1px solid #f5f5f5;
    }
    
    .stat-item {
      flex: 1;
      text-align: center;
    }
    
    .stat-value {
      font-weight: 600;
      color: #1890ff;
    }
    
    .stat-label {
      font-size: 12px;
      color: #666;
    }
    
    /* 样式2 - 简约布局 */
    .simple-members .member-item {
      border-radius: 0;
      box-shadow: none;
      border-bottom: 1px solid #eee;
      margin-bottom: 0;
    }
    
    .simple-members .member-header {
      padding: 12px 15px;
    }
    
    .simple-members .member-avatar {
      width: 40px;
      height: 40px;
    }
    
    .simple-members .member-actions {
      padding: 8px 15px;
    }
    
    .simple-members .action-btn {
      padding: 5px 12px;
      font-size: 13px;
    }
    
    /* 样式3 - 卡片布局 */
    .card-members .member-item {
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      margin-bottom: 15px;
    }
    
    .card-members .member-header {
      padding: 18px 15px;
    }
    
    .card-members .member-avatar {
      width: 60px;
      height: 60px;
    }
    
    .card-members .member-name {
      font-size: 17px;
    }
    
    .card-members .card-footer {
      padding: 12px 15px;
      background-color: #fafafa;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
      color: #666;
    }
    
    /* 样式4 - 分组布局 */
    .grouped-members .department-group {
      margin-bottom: 15px;
      background-color: #fff;
      border-radius: 8px;
      overflow: hidden;
    }
    
    .grouped-members .department-title {
      padding: 12px 15px;
      font-weight: 600;
      background-color: #f5f7fa;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
    }
    
    .grouped-members .member-item {
      border-radius: 0;
      box-shadow: none;
      margin-bottom: 0;
      border-bottom: 1px solid #f5f5f5;
    }
    
    .grouped-members .member-item:last-child {
      border-bottom: none;
    }
    
    /* 提示框 */
    .toast {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      background-color: rgba(0,0,0,0.8);
      color: white;
      border-radius: 8px;
      padding: 10px 15px;
      font-size: 14px;
      z-index: 1000;
      display: none;
    }
  </style>
</head>
<body>
  <!-- 提示框 -->
  <div class="toast" id="toast"></div>
  
  <!-- 顶部导航 -->
  <nav class="top-nav">
    <a href="#" class="nav-btn" id="backBtn">
      <i class="fa fa-angle-left"></i>
    </a>
    <h1 class="nav-title">企业成员管理</h1>
    <div class="nav-right">
      <a href="#" class="nav-btn" id="inviteBtn">
        <i class="fa fa-plus"></i>
      </a>
      <a href="#" class="nav-btn" id="settingsBtn">
        <i class="fa fa-cog"></i>
      </a>
    </div>
  </nav>
  
  <!-- 企业信息头部 -->
  <div class="company-header">
    <div class="company-logo">
      <img src="https://picsum.photos/id/101/200/200" alt="企业logo">
    </div>
    <div class="company-info">
      <div class="company-name">科技创新有限公司</div>
      <div class="member-count">共有 24 名成员</div>
    </div>
  </div>
  
  <!-- 样式切换器 -->
  <div class="style-switcher">
    <div class="style-tabs">
      <div class="style-tab active" data-style="standard">标准布局</div>
      <div class="style-tab" data-style="simple">简约布局</div>
      <div class="style-tab" data-style="card">卡片布局</div>
      <div class="style-tab" data-style="grouped">分组布局</div>
    </div>
  </div>
  
  <!-- 搜索和筛选 -->
  <div class="search-bar">
    <input type="text" class="search-input" placeholder="搜索成员姓名、职位...">
  </div>
  
  <div class="filter-bar">
    <button class="filter-btn" onclick="showToast('已按部门筛选')">
      <i class="fa fa-sitemap"></i> 部门筛选
    </button>
    <button class="filter-btn" onclick="showToast('已按角色筛选')">
      <i class="fa fa-filter"></i> 角色筛选
    </button>
    <button class="filter-btn" onclick="showToast('已按加入时间排序')">
      <i class="fa fa-sort"></i> 加入时间
    </button>
  </div>
  
  <!-- 样式1 - 标准布局 -->
  <div class="member-page active standard-members" id="standard">
    <div class="member-container">
      <!-- 成员1 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/1/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">
              张明 <span class="admin-badge">管理员</span>
            </div>
            <div class="member-role">职位: 创始人兼CEO</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-detail">
          <div class="detail-row">
            <div class="detail-label">部门</div>
            <div class="detail-value">管理层</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">联系方式</div>
            <div class="detail-value">138****1234 | zhang@techcompany.com</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">加入时间</div>
            <div class="detail-value">2023-01-15</div>
          </div>
        </div>
        
        <div class="member-stats">
          <div class="stat-item">
            <div class="stat-value">128</div>
            <div class="stat-label">发布内容</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">542</div>
            <div class="stat-label">动态互动</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">96%</div>
            <div class="stat-label">活跃度</div>
          </div>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
        </div>
      </div>
      
      <!-- 成员2 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/2/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">李婷</div>
            <div class="member-role">职位: 产品经理</div>
          </div>
          <span class="status-tag status-inactive">离线</span>
        </div>
        
        <div class="member-detail">
          <div class="detail-row">
            <div class="detail-label">部门</div>
            <div class="detail-value">产品部</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">联系方式</div>
            <div class="detail-value">139****5678 | li@techcompany.com</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">加入时间</div>
            <div class="detail-value">2023-03-22</div>
          </div>
        </div>
        
        <div class="member-stats">
          <div class="stat-item">
            <div class="stat-value">86</div>
            <div class="stat-label">发布内容</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">325</div>
            <div class="stat-label">动态互动</div>
          </div>
          <div class="stat-item">
            <div class="stat-value">82%</div>
            <div class="stat-label">活跃度</div>
          </div>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">
            <i class="fa fa-times"></i> 移除
          </button>
        </div>
      </div>
    </div>
    
    <!-- 分页 -->
    <div class="pagination">
      <button class="page-btn"><i class="fa fa-angle-left"></i></button>
      <button class="page-btn active">1</button>
      <button class="page-btn">2</button>
      <button class="page-btn">3</button>
      <button class="page-btn">4</button>
      <button class="page-btn">5</button>
      <button class="page-btn"><i class="fa fa-angle-right"></i></button>
    </div>
  </div>
  
  <!-- 样式2 - 简约布局 -->
  <div class="member-page simple-members" id="simple">
    <div class="member-container">
      <!-- 成员1 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/1/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">
              张明 <span class="admin-badge">管理员</span>
            </div>
            <div class="member-role">创始人兼CEO | 管理层</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">消息</button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">详情</button>
        </div>
      </div>
      
      <!-- 成员2 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/2/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">李婷</div>
            <div class="member-role">产品经理 | 产品部</div>
          </div>
          <span class="status-tag status-inactive">离线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">消息</button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">详情</button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">移除</button>
        </div>
      </div>
      
      <!-- 成员3 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/3/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">王浩</div>
            <div class="member-role">技术总监 | 技术部</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">消息</button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">详情</button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">移除</button>
        </div>
      </div>
    </div>
    
    <!-- 分页 -->
    <div class="pagination">
      <button class="page-btn"><i class="fa fa-angle-left"></i></button>
      <button class="page-btn active">1</button>
      <button class="page-btn">2</button>
      <button class="page-btn">3</button>
      <button class="page-btn"><i class="fa fa-angle-right"></i></button>
    </div>
  </div>
  
  <!-- 样式3 - 卡片布局 -->
  <div class="member-page card-members" id="card">
    <div class="member-container">
      <!-- 成员1 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/1/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">
              张明 <span class="admin-badge">管理员</span>
            </div>
            <div class="member-role">创始人兼CEO | 管理层</div>
          </div>
        </div>
        
        <div class="member-detail">
          <div class="detail-row">
            <div class="detail-label">联系方式</div>
            <div class="detail-value">138****1234 | zhang@techcompany.com</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">加入时间</div>
            <div class="detail-value">2023-01-15</div>
          </div>
        </div>
        
        <div class="card-footer">
          <div><i class="fa fa-line-chart"></i> 活跃度: 96%</div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">消息</button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">详情</button>
        </div>
      </div>
      
      <!-- 成员2 -->
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/2/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">李婷</div>
            <div class="member-role">产品经理 | 产品部</div>
          </div>
        </div>
        
        <div class="member-detail">
          <div class="detail-row">
            <div class="detail-label">联系方式</div>
            <div class="detail-value">139****5678 | li@techcompany.com</div>
          </div>
          <div class="detail-row">
            <div class="detail-label">加入时间</div>
            <div class="detail-value">2023-03-22</div>
          </div>
        </div>
        
        <div class="card-footer">
          <div><i class="fa fa-line-chart"></i> 活跃度: 82%</div>
          <span class="status-tag status-inactive">离线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">消息</button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">详情</button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">移除</button>
        </div>
      </div>
    </div>
    
    <!-- 分页 -->
    <div class="pagination">
      <button class="page-btn"><i class="fa fa-angle-left"></i></button>
      <button class="page-btn active">1</button>
      <button class="page-btn">2</button>
      <button class="page-btn">3</button>
      <button class="page-btn">4</button>
      <button class="page-btn">5</button>
      <button class="page-btn"><i class="fa fa-angle-right"></i></button>
    </div>
  </div>
  
  <!-- 样式4 - 分组布局 -->
  <div class="member-page grouped-members" id="grouped">
    <!-- 管理层 -->
    <div class="department-group">
      <div class="department-title">
        <span>管理层</span>
        <span>3人</span>
      </div>
      
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/1/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">
              张明 <span class="admin-badge">管理员</span>
            </div>
            <div class="member-role">创始人兼CEO</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
        </div>
      </div>
      
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/4/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">
              刘强 <span class="admin-badge">管理员</span>
            </div>
            <div class="member-role">联合创始人兼COO</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
        </div>
      </div>
    </div>
    
    <!-- 产品部 -->
    <div class="department-group">
      <div class="department-title">
        <span>产品部</span>
        <span>5人</span>
      </div>
      
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/2/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">李婷</div>
            <div class="member-role">产品经理</div>
          </div>
          <span class="status-tag status-inactive">离线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">
            <i class="fa fa-times"></i> 移除
          </button>
        </div>
      </div>
      
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/5/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">赵琳</div>
            <div class="member-role">产品助理</div>
          </div>
          <span class="status-tag status-pending">请假中</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">
            <i class="fa fa-times"></i> 移除
          </button>
        </div>
      </div>
    </div>
    
    <!-- 技术部 -->
    <div class="department-group">
      <div class="department-title">
        <span>技术部</span>
        <span>12人</span>
      </div>
      
      <div class="member-item">
        <div class="member-header">
          <div class="member-avatar">
            <img src="https://picsum.photos/id/3/200/200" alt="成员头像">
          </div>
          <div class="member-main">
            <div class="member-name">王浩</div>
            <div class="member-role">技术总监</div>
          </div>
          <span class="status-tag status-active">在线</span>
        </div>
        
        <div class="member-actions">
          <button class="action-btn btn-normal" onclick="showToast('已发送消息')">
            <i class="fa fa-comment"></i> 消息
          </button>
          <button class="action-btn btn-primary" onclick="showToast('已查看详情')">
            <i class="fa fa-eye"></i> 详情
          </button>
          <button class="action-btn btn-danger" onclick="showToast('已移除成员')">
            <i class="fa fa-times"></i> 移除
          </button>
        </div>
      </div>
    </div>
    
    <!-- 分页 -->
    <div class="pagination">
      <button class="page-btn"><i class="fa fa-angle-left"></i></button>
      <button class="page-btn active">1</button>
      <button class="page-btn">2</button>
      <button class="page-btn"><i class="fa fa-angle-right"></i></button>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 获取元素
    const styleTabs = document.querySelectorAll('.style-tab');
    const memberPages = document.querySelectorAll('.member-page');
    const backBtn = document.getElementById('backBtn');
    const inviteBtn = document.getElementById('inviteBtn');
    const settingsBtn = document.getElementById('settingsBtn');
    const toast = document.getElementById('toast');
    
    // 样式切换
    styleTabs.forEach(tab => {
      tab.addEventListener('click', function() {
        // 移除所有激活状态
        styleTabs.forEach(t => t.classList.remove('active'));
        memberPages.forEach(page => page.classList.remove('active'));
        
        // 设置当前激活状态
        this.classList.add('active');
        const style = this.getAttribute('data-style');
        document.getElementById(style).classList.add('active');
        
        showToast(`已切换到${this.textContent}`);
      });
    });
    
    // 返回按钮
    backBtn.addEventListener('click', function() {
      showToast('返回企业管理');
    });
    
    // 邀请按钮
    inviteBtn.addEventListener('click', function() {
      showToast('邀请新成员');
    });
    
    // 设置按钮
    settingsBtn.addEventListener('click', function() {
      showToast('成员管理设置');
    });
    
    // 显示提示
    function showToast(message) {
      toast.textContent = message;
      toast.style.display = 'block';
      
      setTimeout(() => {
        toast.style.opacity = '0';
        setTimeout(() => {
          toast.style.display = 'none';
          toast.style.opacity = '1';
        }, 300);
      }, 2000);
    }
  </script>
</body>
</html>
